package net.nandleon.AgenceVoyage.client.event.dataEvent;

import net.nandleon.AgenceVoyage.client.event.loginEvent.LoginEventHandler;
import net.nandleon.AgenceVoyage.shared.ElementPanier;

import com.google.gwt.event.shared.GwtEvent;
import com.google.gwt.event.shared.GwtEvent.Type;
import com.google.gwt.user.client.ui.Image;

public class DataEvent extends GwtEvent<DataEventHandler> {
	
	public static final GwtEvent.Type TYPE =
	      new GwtEvent.Type();
	
	private ElementPanier elt =null;
	
	public DataEvent() {
		
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<DataEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(DataEventHandler handler) {
		handler.onMarkerSelected(this);
		
	}

	public static Type<DataEventHandler> getType() {
		return TYPE;
	}
	
	
	public void setElementPanier(ElementPanier elt){
		this.elt = elt;
	}
	
	public ElementPanier getElementPanier(){
		return elt;
	}
	
}
